<%
    response.addHeader("Refresh", "10");
%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<HTML>
<HEAD>

</HEAD>
<BODY>

<table>
    <tr height="600 px" style="vertical-align: top">
        <td width="200 px">

            <c:forEach items="${messages}" var="messages" varStatus="status">
                <jsp:useBean id="date" class="java.util.Date"/>
                <c:if test="${date.time-messages.time le 120000}">
                    <c:out value="${messages.message}"/>
                    <br>
                </c:if>
            </c:forEach></td>

    </tr>
</table>
</BODY>
</HTML>